package com.ruoyi.web.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.Date;

/**
 * 紫金港科技报名列表
 * @TableName zjgkj_entry
 */
@Data
public class ZjgkjEntry implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    @TableId
    private String name;

    /**
     * 联系电话
     */
    @ApiModelProperty(value = "联系电话")
    @Excel(name = "联系电话")
    @Length(min = 11, max = 11, message = "联系电话格式错误！")
    private String phone;

    /**
     * 项目名称
     */
    @Excel(name = "项目名称")
    private String projectName;

    /**
     * 专业领域
     */
    @Excel(name = "专业领域")
    private String field;

    /**
     * 项目简介
     */
    @Excel(name = "项目简介")
    private String projectInfo;

    /**
     * 有无海外工作经历
     */
    @Excel(name = "有无海外工作经历",readConverterExp = "0=无,1=有")
    private Integer isOut;

    /**
     * 归国时间
     */
    @Excel(name = "归国时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date inDate;

    /**
     * 提交附件id
     */
    private Long fileId;

    /**
     * 是否删除
     */
    private Integer isDelete;

    /**
     * 提交时间
     */
    @Excel(name = "提交时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 删除时间
     */
    private Date deleteTime;

    /**
     * 审核状态（0未审核，1已审核，2不通过）
     */
    @Excel(name = "审核状态", readConverterExp = "0=未审核,1=已审核,2=不通过")
    private Integer status;

    private static final long serialVersionUID = 1L;



    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ZjgkjEntry other = (ZjgkjEntry) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getProjectName() == null ? other.getProjectName() == null : this.getProjectName().equals(other.getProjectName()))
            && (this.getField() == null ? other.getField() == null : this.getField().equals(other.getField()))
            && (this.getProjectInfo() == null ? other.getProjectInfo() == null : this.getProjectInfo().equals(other.getProjectInfo()))
            && (this.getIsOut() == null ? other.getIsOut() == null : this.getIsOut().equals(other.getIsOut()))
            && (this.getInDate() == null ? other.getInDate() == null : this.getInDate().equals(other.getInDate()))
            && (this.getFileId() == null ? other.getFileId() == null : this.getFileId().equals(other.getFileId()))
            && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getDeleteTime() == null ? other.getDeleteTime() == null : this.getDeleteTime().equals(other.getDeleteTime()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getProjectName() == null) ? 0 : getProjectName().hashCode());
        result = prime * result + ((getField() == null) ? 0 : getField().hashCode());
        result = prime * result + ((getProjectInfo() == null) ? 0 : getProjectInfo().hashCode());
        result = prime * result + ((getIsOut() == null) ? 0 : getIsOut().hashCode());
        result = prime * result + ((getInDate() == null) ? 0 : getInDate().hashCode());
        result = prime * result + ((getFileId() == null) ? 0 : getFileId().hashCode());
        result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getDeleteTime() == null) ? 0 : getDeleteTime().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", phone=").append(phone);
        sb.append(", projectName=").append(projectName);
        sb.append(", field=").append(field);
        sb.append(", projectInfo=").append(projectInfo);
        sb.append(", isOut=").append(isOut);
        sb.append(", inDate=").append(inDate);
        sb.append(", fileId=").append(fileId);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", createTime=").append(createTime);
        sb.append(", deleteTime=").append(deleteTime);
        sb.append(", status=").append(status);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}